<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<body class="hold-transition sidebar-mini">
<!-- 导航条start -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
        <li class="nav-item">
            <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
        </li>
        <li class="nav-item d-none d-sm-inline-block">
            <a href="index3.html" class="nav-link">Home</a>
        </li>
    </ul>


    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
        <!-- Notifications Dropdown Menu -->
        <li class="nav-item">
            <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button"><i
                    class="fas fa-th-large"></i></a>
        </li>
    </ul>
</nav>
<!--导航条end-->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="index3.jsp" class="brand-link">
        <img src="dist/img/AdminLTELogo.png" alt="有害气体检测系统的Logo" class="brand-image img-circle elevation-3"
             style="opacity: .8">
        <span class="brand-text font-weight-light">有害气体检测系统</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
        <!-- Sidebar user panel (optional) -->
        <div class="user-panel mt-3 pb-3 mb-3 d-flex" onclick="$('#UserLogOut').toggle()">
            <div class="image">
                <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
            </div>
            <div class="info">
                <a href="#" class="d-block">${loginUser.gd_username}</a>
            </div>
        </div>
        <div class="user-panel mt-3 pb-3 mb-3" style="text-align: center;display: none;" id="UserLogOut">
            <a href="javascript:void(0);" style="color: red" onclick="logout()">退出登录</a>
        </div>


        <!-- Sidebar Menu -->
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
                <!-- Add icons to the links using the .nav-icon class
                     with font-awesome or any other icon font library -->
                <li class="nav-item">
                    <a href="monitoringUI.do" class="nav-link">
                        <i class="nav-icon far fa-circle text-danger"></i>
                        <p class="text">监控界面</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="deviceManageUI.do" class="nav-link">
                        <i class="nav-icon far fa-circle text-warning"></i>
                        <p>设备管理</p>
                    </a>
                </li>
                <!--用户管理start-->
                <li class="nav-item">
                    <a href="userManageUI.do" class="nav-link">
                        <i class="nav-icon far fa-circle text-info"></i>
                        <p>用户管理</p>
                    </a>
                </li>
                <!--用户管理end-->

            </ul>
        </nav>
        <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
</aside>

<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<script type="text/javascript">
    function logout() {
        var message = "确定要退出系统吗？";
        if (confirm(message) == true){
            // success_prompt("退出成功！");
            window.location.href ="http://122.51.35.222:8088/HGDS/logOutUser.do";
        }else {
            return false;
        }
    }
</script>




